﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GraphGeneration
{
    class EdgeComparer :IEqualityComparer<Edge>
    {

        bool IEqualityComparer<Edge>.Equals(Edge e1, Edge e2)
        {
            if (e1.from == e2.from && e1.to == e2.to)
                return true;

            return false;
        }

        int IEqualityComparer<Edge>.GetHashCode(Edge e)
        {
            return e.GetHashCode();
        }

    }
}
